﻿#ifndef TESTTASK_H
#define TESTTASK_H

#include <QObject>
#include "ZMultiThread/ZMultiThreadTask.h"

class TestTask : public ZMultiThreadTask
{
    Q_OBJECT
public:
    explicit TestTask(QObject *parent = nullptr);

    virtual int type();
    virtual void stopCurrent();
    virtual void doTask();

signals:
    void sigTaskFinished();

private slots:
    void slotTaskFinished();

private:
    Qt::HANDLE m_main_thread_id; // 主线程id
};

#endif // TESTTASK_H
